package mylibrary.com.thinking.java.chapter15;

public class Holder3<M> {

	private M a;
	public Holder3(M a) {
		this.a = a;
	}
	
	public void set(M a) {
		this.a = a;
	}
	
	public M get() {
		return a;
	}
	
	public static void main(String[] args) {
		
		Holder3<String> h3 = new Holder3<String>("124");
		String s = h3.get();
		
		Holder3<Integer> h = new Holder3<Integer>(new Integer(10));
		Integer i = h.get();
	}
}
